/*
 * Copyright (c) 2021 minglong@iscas.ac.cn
 *
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice, this list of
 *    conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice, this list
 *    of conditions and the following disclaimer in the documentation and/or other materials
 *    provided with the distribution.
 *
 * 3. Neither the name of the copyright holder nor the names of its contributors may be used
 *    to endorse or promote products derived from this software without specific prior written
 *    permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const supportDevices: AppRouteModule = {
  path: '/supportDevices',
  name: 'SupportDevices',
  component: LAYOUT,
  redirect: '/supportDevices/devices',
  meta: {
    orderNo: 15,
    title: t('routes.supportDevices.title'),
    hideChildrenInMenu: true
  },
  children: [
    {
      path: 'devices',
      name: 'DevicesPage',
      component: () => import('/@/views/devices/devices.vue'),
      meta: {
        // affix: true,
        title: t('routes.supportDevices.title'),
      },
    },
    {
      path: 'BearPi_HM_Nano',
      component: () => import('/@/views/devices/BearPi_HM_Nano/BearPi_HM_Nano.vue'),
      name: 'BearPi_HM_Nano',
      meta: { 
        hideBreadcrumb: true,
        hideMenu: true,
        title: t('routes.supportDevices.BearPi_HM_Nano') 
      }
    },
    {
      path: 'BK7231X',
      component: () => import('/@/views/devices/BK7231X/BK7231X.vue'),
      name: 'BK7231X',
      meta: { 
        hideBreadcrumb: true,
        hideMenu: true,
        title: t('routes.supportDevices.BK7231X') 
      }
    },
    {
      path: 'DAYU100',
      component: () => import('/@/views/devices/DAYU100/DAYU100.vue'),
      name: 'DAYU100',
      meta: { 
        hideBreadcrumb: true,
        hideMenu: true,
        title: t('routes.supportDevices.DAYU100') 
      }
    },
    {
      path: 'DAYU200',
      component: () => import('/@/views/devices/DAYU200/DAYU200.vue'),
      name: 'DAYU200',
      meta: { 
        hideBreadcrumb: true,
        hideMenu: true,
        title: t('routes.supportDevices.DAYU200') 
      }
    },
    {
      path: 'GenkiPI',
      component: () => import('/@/views/devices/GenkiPI/GenkiPI.vue'),
      name: 'GenkiPI',
      meta: { 
        hideBreadcrumb: true,
        hideMenu: true,
        title: t('routes.supportDevices.GenkiPI') 
      }
    },
    {
      path: 'Halley5',
      component: () => import('/@/views/devices/Halley5/Halley5.vue'),
      name: 'Halley5',
      meta: { 
        hideBreadcrumb: true,
        hideMenu: true,
        title: t('routes.supportDevices.Halley5') 
      }
    },
    {
      path: 'HH_SLNPT100',
      component: () => import('/@/views/devices/HH_SLNPT100/HH_SLNPT100.vue'),
      name: 'HH_SLNPT100',
      meta: { 
        hideBreadcrumb: true,
        hideMenu: true,
        title: t('routes.supportDevices.HH_SLNPT100') 
      }
    },
    {
      path: 'Niobe',
      component: () => import('/@/views/devices/Niobe/Niobe.vue'),
      name: 'Niobe',
      meta: { 
        hideBreadcrumb: true,
        hideMenu: true,
        title: t('routes.supportDevices.Niobe') 
      }
    },
    // {
    //   path: 'RPI_3B',
    //   component: () => import('/@/views/devices/RPI_3B/RPI_3B.vue'),
    //   name: 'RPI_3B',
    //   meta: { 
    //     hideBreadcrumb: true,
    //     hideMenu: true,
    //     title: t('routes.supportDevices.RPI_3B') 
    //   }
    // },
    {
      path: 'UnionPi',
      component: () => import('/@/views/devices/UnionPi/UnionPi.vue'),
      name: 'UnionPi',
      meta: { 
        hideBreadcrumb: true,
        hideMenu: true,
        title: t('routes.supportDevices.UnionPi') 
      }
    },
    {
      path: 'Waffle_Nano',
      component: () => import('/@/views/devices/Waffle_Nano/Waffle_Nano.vue'),
      name: 'Waffle_Nano',
      meta: { 
        hideBreadcrumb: true,
        hideMenu: true,
        title: t('routes.supportDevices.Waffle_Nano') 
      }
    },
    {
      path: 'XR806',
      component: () => import('/@/views/devices/XR806/XR806.vue'),
      name: 'XR806',
      meta: { 
        hideBreadcrumb: true,
        hideMenu: true,
        title: t('routes.supportDevices.XR806') 
      }
    },
    {
      path: 'BL_HWC_G1',
      component: () => import('/@/views/devices/BL_HWC_G1/BL_HWC_G1.vue'),
      name: 'BL_HWC_G1',
      meta: { 
        hideBreadcrumb: true,
        hideMenu: true,
        title: t('routes.supportDevices.BL_HWC_G1') 
      }
    },
    {
      path: 'EVB_OH1',
      component: () => import('/@/views/devices/EVB_OH1/EVB_OH1.vue'),
      name: 'EVB_OH1',
      meta: { 
        hideBreadcrumb: true,
        hideMenu: true,
        title: t('routes.supportDevices.EVB_OH1') 
      }
    },
    {
      path: 'board_standard',
      component: () => import('/@/views/devices/board_standard.vue'),
      name: 'board_standard',
      meta: { 
        hideBreadcrumb: true,
        hideMenu: true,
        title: t('routes.supportDevices.board_standard') 
      }
    }
  ],
};

export default supportDevices;
